package com.aaa.ssm.util;

/**
 * @ fileName:ResultStatus
 * @ description:
 * @ author:张圣福
 * @ createTime:2023/9/26 15:38
 * @ version:1.0.0
 */

public enum ResultStatus {
    SUCCESS(200,"操作成功"),
    ERROR(500,"操作失败");
    //属性
    private Integer returnCode;
    private String  returnMessage;
    /**
     * 构造，目的让枚举项进行调用
     * @param returnCode
     * @param returnMessage
     */
    ResultStatus(Integer returnCode, String returnMessage) {
        this.returnCode = returnCode;
        this.returnMessage = returnMessage;
    }
    public Integer getReturnCode() {
        return returnCode;
    }
    public void setReturnCode(Integer returnCode) {
        this.returnCode = returnCode;
    }
    public String getReturnMessage() {
        return returnMessage;
    }
    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }
}
